package com.edu.test.commandPattern;

/**
 * @作者 five-five
 * @创建时间 2020/12/26
 */
public abstract class Command {
    //具体的行为实现者
    protected Reciver reciver;
//    protected Reciver reciver=new ReciverA();

    public abstract void exceute();

    public void setReciver(Reciver reciver) {
        System.out.println("父类的reciver:" + this.reciver.hashCode());
        this.reciver = reciver;
    }
}
